package com.javafive;

import java.io.*;

public class Demo11 {
    public static void main(String[] args) throws Exception {
        String path="E:\\webWork\\javaKh62Demo\\src\\com\\javafive\\txt\\1.txt";
        //OutputStream outputStream=new FileOutputStream(path,true);
        //Writer writer = new OutputStreamWriter(outputStream);
        Writer writer = new FileWriter(path,true);
        BufferedWriter bufferedWriter = new BufferedWriter(writer);
        bufferedWriter.newLine();
        bufferedWriter.write("测试");
        bufferedWriter.flush();
        bufferedWriter.close();
    }
}
